variable "charging_mode" {
  type        = string
  default     = null
  description = "Specifies the charging mode of the elastic IP. Valid values are prePaid and postPaid, defaults to postPaid. The valid values are as follows:prePaid: the yearly/monthly billing mode,postPaid: the pay-per-use billing mode."
}

variable "period_unit" {
  description = "The period unit of the pre-paid purchase"
  
  type    = string
  default = null
}

variable "period" {
  description = "The period number of the pre-paid purchase"
  
  type    = number
  default = null
}

variable "name_suffix" {
  description = "The suffix string of name for all eip resources"
  
  type    = string
  default = ""
}

variable "associated_configuration" {
  description = ""
  type        = list(object({
    port_id   = string
  }))
  default = null
}

variable "eip_configuration" {
  description = "The configuration for eip resources to which the eip belongs"
  type = list(object({
    type                  = string
    bandwidth_name        = string
    size                  = number
    share_type            = string
    bandwidth_charge_mode = string
    name                  = string
    tags                  = map(string)
  }))
  default = null
}
